Page({
    data: {
        msg: null
    },
    getValue(event) {
        console.log(event.detail);
        this.setData({
            msg: event.detail.value
        })
    },
    getWeather() {
        console.log(this.data.msg);
        // 发送请求 API
    }
})